package com.zrwl.poscloud.xo.mapper;

import com.zrwl.poscloud.base.entity.User;
import com.zrwl.poscloud.base.superI.SuperMapper;
import com.zrwl.poscloud.xo.vo.UserVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 用户 Mapper类
 *
 * @author 刘思童 AutoGenerate
 * @date 2022-09-06
 */
public interface UserMapper extends SuperMapper<User> {

    public User getUserMobile(@Param("mobile") String mobile);

    public UserVO getUserWeChat(@Param("weChat") String weChat);
    List<UserVO> getUserMesByNickNameAndUserNameOrMobile(@Param("param") UserVO userVO);

    @Select("<script>" +
            "  SELECT *" +
            "  FROM t_user " +
            "  WHERE status=1 and uid = #{userUid}" +
            "</script>"
    )
    public User getUserByUserUid(@Param("userUid")String toUid);

    List<UserVO> getUserInfo(@Param("userUid") String userUid);
}

